﻿using System;
using Agro.Models;
using SN.Data;
using System.Collections.Generic;

namespace Agro.Services
{
    public class BbztService : BaseService, IBbztService
    {
        public string Save(string ReportID, string sValue)
        {
            string Msg = string.Empty;
            try
            {
                T_Report config = DB.From<T_Report>().Where(T_Report._.Report_ID == ReportID).ToSingle();

                config.Report_Sfky = sValue;
                
                config.Attach();
                DB.Save<T_Report>(config);
            }
            catch (Exception ex)
            {
                Msg = ex.Message;
                throw;
            }
            return Msg;
        }
    }
}
